<template>
  <div class="rank">
    <!-- 上半部 -->
    <div class="tab">
      <div class="tab-tit clearfix">
        <a href="#javascript;" class="on">
          <p class="img">
            <i></i>
          </p>
          <p class="text">热卖排行</p>
        </a>

        <a href="#javascript;" class="on">
          <p class="img">
            <i></i>
          </p>
          <p class="text">特价排行</p>
        </a>

        <a href="#javascript;" class="on">
          <p class="img">
            <i></i>
          </p>
          <p class="text">新品排行</p>
        </a>
      </div>
    </div>

    <!-- 下半部 -->
    <div class="content">
      <ul>
        <li>
          <!--  -->
          <div class="img-item">
            <!--  -->
            <p class="tab-pic">
              <a href="">
                <img src="./images/1.jpg" alt="">
              </a>
            </p>
            <!--  -->
            <div class="tab-info">
              <div class="info-title">
                <a href="">【官方价直降1100】Apple iPhone 8 Plus 256GB 银色移动联通电信4G手机</a>
              </div>
              <p class="info-price">定金：￥100.00</p>
            </div>
          </div>

          <!--  -->
          <div class="img-item">
            <!--  -->
            <p class="tab-pic">
              <a href="">
                <img src="./images/1.jpg" alt="">
              </a>
            </p>
            <!--  -->
            <div class="tab-info">
              <div class="info-title">
                <a href="">【官方价直降1100】Apple iPhone 8 Plus 256GB 银色移动联通电信4G手机</a>
              </div>
              <p class="info-price">定金：￥100.00</p>
            </div>
          </div>    

          <!--  -->
          <div class="img-item">
            <!--  -->
            <p class="tab-pic">
              <a href="">
                <img src="./images/1.jpg" alt="">
              </a>
            </p>
            <!--  -->
            <div class="tab-info">
              <div class="info-title">
                <a href="">【官方价直降1100】Apple iPhone 8 Plus 256GB 银色移动联通电信4G手机</a>
              </div>
              <p class="info-price">定金：￥100.00</p>
            </div>
          </div>    

          <!--  -->
          <div class="img-item">
            <!--  -->
            <p class="tab-pic">
              <a href="">
                <img src="./images/1.jpg" alt="">
              </a>
            </p>
            <!--  -->
            <div class="tab-info">
              <div class="info-title">
                <a href="">【官方价直降1100】Apple iPhone 8 Plus 256GB 银色移动联通电信4G手机</a>
              </div>
              <p class="info-price">定金：￥100.00</p>
            </div>
          </div>                       
        </li>
        
        <li>
          <!--  -->
          <div class="img-item">
            <!--  -->
            <p class="tab-pic">
              <a href="">
                <img src="./images/1.jpg" alt="">
              </a>
            </p>
            <!--  -->
            <div class="tab-info">
              <div class="info-title">
                <a href="">【官方价直降1100】Apple iPhone 8 Plus 256GB 银色移动联通电信4G手机</a>
              </div>
              <p class="info-price">定金：￥100.00</p>
            </div>
          </div>

          <!--  -->
          <div class="img-item">
            <!--  -->
            <p class="tab-pic">
              <a href="">
                <img src="./images/1.jpg" alt="">
              </a>
            </p>
            <!--  -->
            <div class="tab-info">
              <div class="info-title">
                <a href="">【官方价直降1100】Apple iPhone 8 Plus 256GB 银色移动联通电信4G手机</a>
              </div>
              <p class="info-price">定金：￥100.00</p>
            </div>
          </div>    

          <!--  -->
          <div class="img-item">
            <!--  -->
            <p class="tab-pic">
              <a href="">
                <img src="./images/1.jpg" alt="">
              </a>
            </p>
            <!--  -->
            <div class="tab-info">
              <div class="info-title">
                <a href="">【官方价直降1100】Apple iPhone 8 Plus 256GB 银色移动联通电信4G手机</a>
              </div>
              <p class="info-price">定金：￥100.00</p>
            </div>
          </div>    

          <!--  -->
          <div class="img-item">
            <!--  -->
            <p class="tab-pic">
              <a href="">
                <img src="./images/1.jpg" alt="">
              </a>
            </p>
            <!--  -->
            <div class="tab-info">
              <div class="info-title">
                <a href="">【官方价直降1100】Apple iPhone 8 Plus 256GB 银色移动联通电信4G手机</a>
              </div>
              <p class="info-price">定金：￥100.00</p>
            </div>
          </div>                       
        </li>
      </ul>
    </div>

  </div>
</template>

<script>
export default {
  name: "Rank",
}
</script>

<style scoped>
  .rank {
    width: 1200px;
    margin: 0 auto;
  }
  .rank .tab {
    margin: 0 auto;
    overflow: hidden;
    width: 312px;
  }
  .rank .tab .tab-tit {
    text-align: center;
  }
  .rank .tab .tab-tit a {
    display: block;
    padding: 0 18px;
    float: left;
    text-decoration: none;
    font-size: 16px;
    color: #999;
  }
  .rank .tab .tab-tit a p {
    margin: 5px 0;
  }
  .rank .tab .tab-tit a .img i {
    width: 35px;
    height: 35px;
    display: block;
    background: url(./images/bg0.png);
    margin-left: 10px;
  }
  .rank .tab .tab-tit a .text {
    line-height: 28px;
  }

  .rank .tab .tab-tit .on {
    color: #e60012;
  }
  .rank .tab .tab-tit .on .img i {
    background-position: -35px 0;
  }
  
  
  .rank .content {
    overflow: hidden;
    padding: 10px;
  }
  .rank .content ul li {
    overflow: hidden;
    list-style: none;
    line-height: 18px;
  }
  .rank .content ul li .img-item {
    border: 1px solid #e1251b;
    width: 269px;
    float: left;
    overflow: hidden;
    margin: 0 12px 10px;
    background: #fff;
  }
  .rank .content ul li .img-item .tab-pic {
    width: 230px;
    height: 210px;
    overflow: hidden;
    text-align: center;
    margin: 5px auto 18px;
  }
  .rank .content ul li .img-item .tab-pic a img {
    width: 200px;
    height: 200px;
  }

  .rank .content ul .tab-info {
    background: #fafafa;
  }
  .rank .content ul .tab-info .info-title {
    height: 50px;
    line-height: 28px;
    overflow: hidden;
    margin: 0 auto;
    padding-left: 10px;
  }
  .rank .content ul .tab-info .info-title a {
    color: #333;
    text-decoration: none;
  }

  .rank .content ul .tab-info .info-price {
    font-size: 20px;
    color: #e1251b;
    height: 35px;
    padding-left: 10px;
    display: block;
    line-height: 24px;
    margin: 10px auto 0;
  }
</style>